package com.zhang.communication.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 用户通告读取表
 * </p>
 *
 * @author 创世神
 * @since 2024-06-06
 */
@Getter
@Setter
@TableName("bulletin_read")
public class BulletinRead implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 已读时间 ，不为0 表示已读 默认0
     */
    @TableField("read_time")
    private LocalDateTime readTime;

    /**
     * 通告id
     */
    @TableField("bulletin_id")
    private Integer bulletinId;
}
